package com.welsir.Bridge;

/**
 * @author welsir
 * @version 1.0
 * @description: TODO
 * @date 2022/11/23 20:07
 */
public class Test {
    public static void main(String[] args) {
        BlackBenz blackBenz = new BlackBenz(new BenzE());
        blackBenz.showInfo();
        BlackBenz blackBenz1 = new BlackBenz(new BenzG());
        blackBenz1.showInfo();

        RedBenz redBenz = new RedBenz(new BenzE());
        redBenz.showInfo();
        RedBenz redBenz1 = new RedBenz(new BenzG());
        redBenz1.showInfo();
    }
}
